from django.db import models

# Create your models here.
from django.db import models

# Create your models here.
from django.db import models
# Create your models here.
class Article(models.Model):
    title = models.CharField(max_length=50,verbose_name="标题")
    time = models.CharField(max_length=100, verbose_name="时间")
    desc = models.CharField(max_length=1000, verbose_name="内容简介")
    def __str__(self):
        return f"标题：{self.title}，发布时间：{self.time}，内容简介：{self.desc}"
    class Meta:
        db_table="article_"